Phase detector

ABSTRACT

Described are a method for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier, and a phase detector for performing such a method. A baseband symbol is obtained from the modulated carrier, and the phase of the symbol is determined. Assuming that the modulation used to modulate the modulated carrier has a constellation diagram with M-fold rotational symmetry, the metric can be generated from the phase by evaluating a base function that includes a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians. Alternatively or additionally, if the ideal symbol phases are uniformly distributed, the metric can be generated by evaluating a version of the base function in which the ideal symbol phases correspond to identically valued metrics located on the triangle wave.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is entitled to the benefit of and incorporates by reference essential subject matter disclosed in International Patent Application No. PCT/CA2011/001217 filed on Nov. 1, 2011 and U.S. Patent Application No. 61/409,544 filed Nov. 3, 2010.

TECHNICAL FIELD

The present disclosure is directed at a phase detector that generates a metric that is a function of a phase difference between a modulated carrier and a local carrier.

BACKGROUND

Wireless digital communications often involves transmission of symbols using a modulated carrier and the subsequent coherent demodulation of the modulated carrier by a receiver. One way to perform coherent demodulation is to synchronize the receiver's local carrier with the modulated carrier using a phase locked loop (PLL). PLLs attempt to eliminate the phase error between the modulated carrier and the local carrier. One component of a PLL is a phase detector.

In digital communications, and particularly in mobile digital communications, it is beneficial to employ circuitry that is fast, inexpensive, relatively simple, and power efficient. Accordingly, research and development continue into improving the designs of PLLs.

SUMMARY

According to one aspect, there is provided a method for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier. The method includes obtaining a baseband symbol from the modulated carrier that is modulated using the symbol according to a modulation whose constellation diagram has M-fold rotational symmetry, wherein M is a positive integer greater than or equal to 2; determining a received phase of the symbol; and generating the metric from the received phase, wherein possible metrics depend on possible received phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians.

According to another aspect, there is provided a method for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier. The method includes obtaining a baseband symbol from the modulated carrier that is modulated using the symbol according to a modulation order (M) equaling the number of distinct ideal symbol phases used to modulate the modulated carrier, wherein ideal symbol phases are uniformly distributed within any continuous phase interval spanning 2π radians; determining the phase of the symbol; and generating the metric from the phase, wherein possible metrics depend on possible phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians, wherein the ideal symbol phases correspond to identically valued metrics located on the triangle wave.

The maxima and minima of the triangle wave may have identical absolute values.

The base function may have a value of zero at each of the ideal symbol phases.

The ideal symbol phases may correspond to identical values for the metric located along either the positively sloped linear segments or the negatively sloped linear segments.

The modulated carrier may be modulated according to QAM and, optionally, Rectangular QAM.

The number of modulation symbols may equal 2^(k), wherein k is a positive integer.

The modulated carrier may be modulated according to M-ary phase shift keying. Optionally, M may equal 2^(k), wherein k is a positive integer.

The modulation may be selected from the group consisting of BPSK, QPSK, 8-PSK, 16-PSK, Rectangular QAM-4, Rectangular QAM-16, Rectangular QAM-64, Rectangular QAM-256, Rectangular Offset-QAM-16, Rectangular Offset-QAM-64, Rectangular Offset-QAM-256, Offset-QPSK, Offset-8PSK, Offset-16PSK, and Minimum Shift Keying.

The received phase may be expressed as being between [−π,π) radians prior to generating the metric, and the base function may be implemented such that it spans only [−π,π) radians.

The received phase may be encoded using an encoding scheme that linearly encompasses substantially all of the possible received phases.

The metric may be generated as a function of a principal angle that is directly proportional to the received phase modulo (π/2M).

The principal angle may be normalized such that its supremum equals the absolute value of the maxima of the triangle wave.

The principal angle may include one or more of the least significant bits of the received phase.

Generating the metric may involve inverting the principal angle as a function of one or more bits of the received phase; and adding one of A, −A or 0 to the principal angle or its inverse as a function of two or more bits of the received phase, wherein A is the absolute value of the maxima of the triangle wave.

The encoding scheme may be one's complement, two's complement, or sign-magnitude encoding, the received phase may have b bits, and M may equal 2^(k), wherein k is a positive integer.

The principal angle may include a plurality of the most significant bits of bits [b-3-log₂ M:0] of the received phase.

The principal angle may be proportional to a binary number that includes a plurality of the most significant bits of bits [b-3-log₂ M:0] of the received phase.

Generating the metric may include inverting the principal angle as a function of one or more of the bits [b-1-log₂ M:b-2-log₂ M] of the received phase; and adding either A, −A or 0 to the principal angle or its inverse as a function of bits [b-1-log₂ M:b-2-log₂ M] of the received phase, wherein A is the absolute value of the maxima of the triangle wave.

According to another aspect, there is provided a phase detector for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier. The phase detector includes a front end configured to obtain a baseband symbol from the modulated carrier that is modulated using the symbol according to a modulation whose constellation diagram has M-fold rotational symmetry, wherein M is a positive integer greater than or equal to 2; a phase determiner communicatively coupled to the front end and configured to determine a received phase of the baseband symbol; and a metric generator communicatively coupled to the phase determiner and configured to generate the metric from the received phase, wherein possible metrics depend on possible received phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians.

According to another aspect, there is provided a phase detector for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier. The phase detector includes a front end configured to obtain a baseband symbol from the modulated carrier that is modulated using the symbol according to a modulation order (M) equaling the number of distinct ideal symbol phases used to modulate the modulated carrier, wherein ideal symbol phases are uniformly distributed within any continuous phase interval spanning 2π radians; a phase determiner communicatively coupled to the front end and configured to determine the phase of the baseband symbols; and a metric generator communicatively coupled to the phase determiner and configured to determine the metric from the phase, wherein possible metrics depend on possible phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians, wherein the ideal symbol phases correspond to identically valued metrics located on the triangle wave.

The maxima and minima of the triangle wave may have identical absolute values.

The base function may have a value of zero at each of the ideal symbol phases.

The ideal symbol phases may correspond to identical values for the metric located along either the positively sloped linear segments or the negatively sloped linear segments.

The modulated carrier may be modulated according to QAM and, optionally, Rectangular QAM.

The number of modulation symbols may equal 2^(k), wherein k is a positive integer.

The modulated carrier may be modulated according to M-ary phase shift keying and, optionally, M may equal 2^(k), wherein k is a positive integer.

The modulation may be selected from the group consisting of BPSK, QPSK, 8-PSK, 16-PSK, Rectangular QAM-4, Rectangular QAM-16, Rectangular QAM-64, Rectangular QAM-256, Rectangular Offset-QAM-16, Rectangular Offset-QAM-64, Rectangular Offset-QAM-256, Offset-QPSK, Offset-8PSK, Offset-16PSK, and Minimum Shift Keying.

The phase determiner may be configured to express the received phase as being between [−π,π) radians, and the base function may be implemented such that it spans only [−π,π) radians.

The phase determiner may be configured to encode the received phase using an encoding scheme that linearly encompasses substantially all of the possible received phases.

The metric generator may be configured to determine for the received phase a principal angle that is directly proportional to the received phase modulo (π/2M) and to determine the metric as a function of the principal angle.

The metric generator may be configured to normalize the principal angle such that its supremum equals the absolute value of the maxima of the triangle wave.

The phase determiner may encode the received phase such that the principal angle comprises one or more of the least significant bits of the phase.

The phase determiner may encode the received phase such that one or more bits (inversion control bits) of the received phase indicate whether to invert the principal angle and such that two or more bits (selection bits) of the received phase indicate whether to add A, −A or 0 to the principal angle or its inverse, wherein A is the absolute value of the maxima of the triangle wave, and the metric generator may include inverting hardware having (i) a data input to which the principal angle is input; (ii) an inversion control input to which the inversion control bits are input; and (iii) a data output that outputs the inverse of the principal angle when the inversion control bits indicate the principal angle is to be inverted and otherwise outputs the principal angle; data selection hardware having (i) data inputs to which A, −A or 0 is input; (ii) a data selection input to which the selection bits are input; and (iii) a data output that outputs either A, −A or 0 in accordance with which one of the data inputs of the data selection hardware is selected by the selection bits; and adding hardware having (i) data inputs communicatively coupled to the data outputs of the inverting hardware and the data selection hardware; and (ii) a data output that outputs the sum of signals at the data inputs of the adding hardware.

The inverting hardware may include a first XOR gate configured to receive the inversion control bits and an array of XOR gates each having one input to receive one bit of the principal angle, wherein the output of the first XOR gate is communicatively coupled to another input of each of the XOR gates in the array. The data selection hardware may include a multiplexer. The adding hardware may include an adder.

A may be 1.

The phase determiner may encode the received phase such that a principal angle precursor includes one or more of the least significant bits of the received phase, and the principal angle may be directly proportional to the principal angle precursor.

The phase determiner may encode the received phase such that one or more bits (inversion control bits) of the received phase indicate whether to invert the principal angle precursor and such that two or more bits (selection bits) of the received phase indicate whether to add A, −A or 0 to the principal angle or its inverse, wherein A is the absolute value of the maxima of the triangle wave, and the metric generator may include inverting hardware comprising (i) a data input to which the principal angle precursor is input; (ii) an inversion control input to which the inversion control bits are input; and (iii) a data output that outputs the inverse of the principal angle precursor when the inversion control bits indicate the principal angle precursor is to be inverted and otherwise outputs the principal angle precursor; data selection hardware having (i) a data input to which A, −A and 0 are input; (ii) a data selection input to which the selection bits are input; and (iii) a data output that outputs either A, −A or 0 in accordance with which one of the data inputs of the data selection hardware is selected by the selection bits; amplification hardware having (i) a data input communicatively coupled to the data output of the inverting hardware; and (ii) a data output that outputs the amplification of the signal at the data input; and adding hardware having (i) data inputs communicatively coupled to the data outputs of the amplification hardware and the data selection hardware; and (ii) a data output that outputs the sum of signals at the data inputs of the adding hardware.

The phase determiner may encode the received phase in one's complement, two's complement, or sign-magnitude encoding. The received phase may have b bits and M may equal 2^(k) wherein k is a positive integer, and the principal angle may include a plurality of the most significant bits of bits [b-3-log₂ M:0] of the received phase.

The phase determiner may encode the received phase such that one or more of bits [b-1-log₂ M:b-2-log₂ M] (inversion control bits) of the received phase indicate whether to invert the principal angle and such that bits [b-log₂ M-1:b-log₂ M-2] (selection bits) of the received phase indicate whether to add A, −A or 0 to the principal angle or its inverse, wherein A is the absolute value of the maxima of the triangle wave, and the metric generator may include inverting hardware having (i) a data input to which the principal angle is input; (ii) an inversion control input to which the inversion control bits are input; (iii) a data output that outputs the inverse of the principal angle when the inversion control bits indicate the principal angle is to be inverted and otherwise outputs the principal angle; data selection hardware having (i) data inputs to which A, −A or 0 are input; (ii) a data selection input to which the selection bits are input; and (iii) a data output that outputs either A, −A or 0 in accordance with which one of the data inputs of the data selection hardware is selected by the selection bits; and adding hardware having (i) data inputs communicatively coupled to the data outputs of the inverting hardware and the data selection hardware; and (ii) a data output that outputs the sum of the data outputs of the inverting hardware and the data selection hardware.

The inverting hardware may be a first XOR gate configured to receive the inversion control bits and an array of XOR gates each having one input to receive one bit of the principal angle, wherein the output of the first XOR gate is communicatively coupled to another input of each of the XOR gates in the array. The data selection hardware may be a multiplexer. The adding hardware may be an adder.

A may be 1.

The phase determiner may encode the received phase in one's complement, two's complement, or sign-magnitude encoding, wherein the received phase may have b bits and M may equal 2^(k) wherein k is a positive integer. The principal angle may be proportional to a principal angle precursor that includes a plurality of the most significant bits of bits [b-3-log₂ M:0] of the received phase.

The phase determiner may encode the received phase such that one or more of the bits [b-1-log₂ M:b-2-log₂ M] (inversion control bits) of the received phase indicates whether to invert the principal angle precursor and such that bits [b-log₂ M-1:b-log₂ M-2] (selection bits) of the received phase indicate whether to add A, −A or 0 to the principal angle or its inverse, wherein A is the absolute value of the maxima of the triangle wave, and the metric generator may include inverting hardware having (i) a data input to which the principal angle precursor is input; (ii) an inversion control input to which the inversion control bits are input; and (iii) a data output that outputs the inverse of the principal angle precursor when the inversion control bits indicate the principal angle precursor is to be inverted and otherwise outputs the principal angle precursor; data selection hardware having (i) a data input to which A, −A and 0 are input; (ii) a data selection input to which the selection bits are input; and (iii) a data output that outputs either A, −A or 0 in accordance with which one of the data inputs of the data selection hardware is selected by the selection bits; amplification hardware having (i) a data input communicatively coupled to the data output of the inverting hardware; and (ii) a data output that outputs the amplification of the signal at the data input; and (d) adding hardware having (i) data inputs communicatively coupled to the data outputs of the amplification hardware and the data selection hardware; and (ii) a data output that outputs the sum of signals at the data inputs of the adding hardware.

The inverting hardware may include a first XOR gate configured to receive the inversion control bits and an array of XOR gates each having one input to receive one bit of the principal angle precursor, wherein the output of the first XOR gate is communicatively coupled to another input of each of the XOR gates in the array. The data selection hardware may include a multiplexer. The amplification hardware may include a bit shifter. The adding hardware may include an adder.

According to another aspect, there is provided a phase detector for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier. The phase detector includes selecting means for selecting one of A, −A or 0 in response to selection bits; inverting means for inverting a principal angle in response to inversion control bits; and adding means, communicatively coupled to outputs of the selecting means and the inverting means, for adding one of A, −A or 0 to the principal angle or its inverse to generate the metric, wherein the modulated carrier is modulated using a symbol according to a modulation order (M) equaling the number of distinct ideal symbol phases used to modulate the modulated carrier, wherein ideal symbol phases are uniformly distributed within any continuous phase interval spanning 2π radians, and wherein the principal angle is modulo (π/2M) of the phase of the symbol, normalized to have a supremum of A.

According to another aspect, there is provided a phase detector for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier. The phase detector includes selecting means for selecting one of A, −A or 0 in response to selection bits; inverting means for inverting a principal angle in response to inversion control bits; and adding means, communicatively coupled to outputs of the selecting means and the inverting means, for adding one of A, −A or 0 to the principal angle or its inverse to generate the metric, wherein the modulated carrier is modulated using a symbol according to a modulation whose constellation diagram has M-fold rotational symmetry, wherein M is a positive integer greater than or equal to 2, and wherein the principal angle is modulo (π/2M) of the phase of the symbol, normalized to have a supremum of A.

The modulation may be selected from the group consisting of BPSK, QPSK, 8-PSK, 16-PSK, Rectangular QAM-4, Rectangular QAM-16, Rectangular QAM-64, Rectangular QAM-256, Rectangular Offset-QAM-16, Rectangular Offset-QAM-64, Rectangular Offset-QAM-256, Offset-QPSK, Offset-8PSK, Offset-16PSK, and Minimum Shift Keying.

According to another aspect, there is provided an apparatus for evaluating a base function. The apparatus includes a front end configured to obtain a baseband symbol from a modulated carrier that is modulated using the symbol according to a modulation; a phase determiner communicatively coupled to the front end and configured to determine a received phase of the baseband symbol; and a metric generator communicatively coupled to the phase determiner and configured to generate the metric from the received phase, wherein possible metrics depend on possible received phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/N radians, wherein N is a positive integer greater than 1.

BRIEF DESCRIPTION OF THE DRAWINGS

In the accompanying drawings, which illustrate one or more exemplary embodiments:

FIG. 1 is a simplified block diagram of an M-PSK receiver, according to one embodiment.

FIG. 2 is a graph of one embodiment of g₂(θ), a base function for BPSK.

FIG. 3 is a graph of one embodiment of g₄(θ), the base function for QPSK.

FIG. 4 is a block diagram of a phase determiner communicatively coupled to a metric generator, according to one embodiment.

FIGS. 5 and 10 are schematics of exemplary circuitry that can be used to implement embodiments of a metric generator used to evaluate the base function, g_(M)(θ).

FIG. 6 is exemplary SystemVerilog code that can be used to implement one or more embodiments of the metric generator.

FIG. 7 is a graph illustrating performance of various embodiments of a phase detector compared to that of several prior art phase detectors.

FIG. 8 is a graph illustrating normalized gains of embodiments of the phase detector compared to normalized gains of several prior art phase detectors.

FIG. 9 is a graph of a principal angle, θ_(P), relative to an input phase, θ.

FIG. 11 is an exemplary constellation diagram for Rectangular QAM-32.

DETAILED DESCRIPTION

Carrier phase error elimination in M-PSK receivers is usually achieved via one of two methods. The first technique uses a feedforward phase estimator to estimate the phase error, and that estimate is then used to demodulate the received and modulated signal. The second technique is the use of feedback, namely the removal the carrier phase error using a Phase Locked Loop (PLL) that attempts to cancel the phase error between the local and received carriers.

Carrier synchronization Phase Lock Loops (PLLs) obtain an estimate of the phase error via a carrier Phase Detector (PD). There are two general types of PDs: Non Data Aided (NDA) and Decision Directed (DD). One common problem with the DD and NDA detectors is that their gain is strongly dependent upon the input signal levels and the AGC (Automatic Gain Control) circuit's operating point and performance. If the PD's gain is variable with one or both of signal level and AGC performance, this means that the carrier PLL's characteristics will vary accordingly, which means that a non-optimal AGC causes a similar non-optimality of the performance of the carrier PLL.

The following embodiments are directed at NDA phase detector structures for carrier synchronization for M-PSK or other modulations. These detectors allow the carrier PLL to become nearly independent of the AGC and signal levels while enjoying relatively good performance. Unlike conventional phase detectors, some of the following embodiments can be implemented relatively compactly, allowing them to be practically deployed using devices such as an FPGA (Field Programmable Gate Array) or ASIC (Application Specific Integrated Circuit). Additionally, the following embodiments allow multiple modulations to be supported by the same receiver with relatively little added complexity in order to support multiple modulations. The phase detector includes a metric generator into which is input the recovered instantaneous phase of a symbol used to modulate the modulated carrier. The metric generator generates a metric that is a function of a phase difference between a modulated carrier and a local carrier.

System Model

A simplified diagram of the front-end of a receiver under discussion is shown in FIG. 1. 1/T is the symbol rate and, as well in the exemplary embodiment, the sample rate. For the exemplary embodiment, a PSK (Phase Shift Keying) signal is assumed for simplicity. The transmitted baseband PSK signal is m(t)≡Σ_(n=−∞) ^(∞)a_(n)p(t−nT), with p(t) being the pulse shape and the symbols being a_(n)=exp(jφ_(n)), with φ_(n)=2π·m_(n)/M being the ideal symbol phases of the transmitted baseband symbols, with m_(n)ε{0, 1, . . . , M−1} (i.e., the phases are uniformly distributed in the interval [0,2π)), where M is called the modulation order or modulation index (e.g. M=2 for BPSK (Binary Phase Shift Keying), M=4 for QPSK (Quaternary Phase Shift Keying), M=8 for 8-PSK, etc.). In alternative embodiments other phases are possible for different Ms which may be different from those used here in the exemplary embodiment. In general, for such constellations as M-PSK in which the distinct ideal symbol phases are uniformly distributed within any continuous angular interval spanning 2π, M is the number of distinct ideal symbol phases of the symbols in the modulation's constellation diagram. By “uniformly distributed”, it is meant that the phase difference between any two symbols of the modulation's constellation diagram is 2πk/M, where k is an integer. In other embodiments such as for Rectangular QAM-32 (wherein QAM is Quadrature Amplitude Modulation) as shown in FIG. 11, the modulation order M for the purposes of defining the phase detector is the number of orders of rotational symmetry that the constellation diagram of the modulation has so long as the constellation diagram has at least two orders of rotational symmetry (i.e. has twofold rotational symmetry). For example, for Rectangular QAM-32 as shown in FIG. 11, the constellation diagram has fourfold rotational symmetry, and accordingly M=4. In general, a modulation's constellation has M-fold rotational symmetry if the smallest nonzero positive angle in radians by which the constellation may be rotated in the I-Q plane and which results in the same constellation form in the I-Q plane is 2π/M. For example, as seen in FIG. 11, the angle π/2 is the smallest positive nonzero angle in radians for which a rotation of the QAM-32 constellation in FIG. 11 results in the same constellation form. Hence, for the constellation in FIG. 11, M=4.

The modulated signal 100 that is present at the output of the receiver's intermediate frequency (IF) downconversion stage is Re[m(t)exp(jω_(i)t+jθ_(i))]+n(t), where n(t) is the noise process, with ω_(i) being the received IF carrier frequency in radians/sec, and θ_(i) (in radians) being the phase of the received IF carrier. In alternative embodiments the receiver may not have an intermediate frequency, or may have several intermediate frequencies, in which case appropriate modifications need to be made to the exemplary embodiments. Hence, the description of the exemplary embodiments should not be construed as limiting.

Alternative embodiments can be conceived in order to handle modulations that are related to M-PSK, such as O-MPSK (Offset MPSK), D-O-MPSK (Differential Offset MPSK), MSK (Minimum Shift Keying), GMSK (Gaussian Minimum Shift Keying), π/M-MPSK, D-π/M-MPSK (Differential π/M-MPSK), FQPSK (Feher's QPSK), 3π/M-8PSK, D-3π/M-8PSK (Differential 3π/M-8PSK), QAM (Quadrature Amplitude Modulation), OQAM (Offset QAM), PAM-PSK (Pulse Amplitude Modulation Phase Shift Keying), Offset-PAM-PSK, CPM (Continuous Phase Modulation) and its variants, and Trellis Coded Modulation (TCM) and its variants.

In the following, for the purpose of describing the exemplary embodiment, unless otherwise stated the description of the exemplary embodiment assumes an M-PSK signal wherein M is a positive integer power of 2, i.e. M equals 2^(k), wherein k is a positive integer. However alternative embodiments are possible for other modulation types, as mentioned above.

The matched filters' 120, 135 response is p*(−t) (where “*” denotes complex conjugation), θ_(o) (radians) is the phase of the receiver local carrier 165, and ω_(o)=ω_(i)+Δω (radians/sec) is the local carrier frequency (Δω is the frequency error between the received and local carriers in radians/sec). A quadrature receiver front end is assumed for the demodulator of the exemplary embodiment, i.e. multiplication by multipliers 105, 110 by the local carrier and its quadrature which is generated by passing the local carrier through a 90 degree phase shifter 115. Alternative embodiments may use other types of receiver front ends and, accordingly the exemplary embodiment presented here should not be construed as limiting. The local oscillator 165 in the exemplary embodiment is controlled by the output of the loop filter 162 which has as its input the output of the carrier phase detector 160. However, in alternative embodiments the oscillator may be controlled or may be free running, depending on the receiver architecture, and, moreover, the receiver structure may be implemented in analog, digital, or mixed logic, etcetera. Moreover, the phase detector may be used in embodiments employing feedback or feed-forward architectures or combinations thereof. For the purposes of describing this embodiment, symbol timing synchronization is assumed, and the Nyquist criterion for zero ISI is assumed obeyed at the outputs of the matched filters 120, 135. Optionally, amplifiers 125, 140 are included after the matched filters 120, 135. The quantity K for the amplifiers 125, 140 may be a true amplification or it may be a mathematical equivalent (preferably AGC-controlled) I-Q arm gain. In many receivers, K is a slow function of time, and is controlled by the AGC in order to attain the desired signal level at the inputs of the I and Q samplers so that they are not saturated yet their full dynamic range is utilized. The I(t) and Q(t) signals are sampled by samplers 130, 145, which operate at a rate of preferably at least 1/T Hertz, from which the relevant samples spaced 1/T seconds apart (corresponding to optimal sampling instances for each symbol) are extracted for the structures of this embodiment. In an alternative embodiments the sampling rate could be higher than 1/T Hertz. In such cases, the samples that correspond to the baseband symbols are extracted, preferably either via sample selection, or via interpolation, or both; the samples that are used ideally, but do not necessarily, correspond to the ideal sampling instances for the received symbols. These ideal sampling instances are usually determined via a symbol sampling synchronization or determination circuit that is contained within the receiver. In yet other embodiments, the sampling rate may be less than 1/T. In such cases, the structures presented herein would operate upon a subset of the received symbols, which is also possible.

The notations n_(I)(t) and n_(Q)(t) refer to the noise present before the (actual or equivalent) amplifiers 125, 140 in the I and Q arms, respectively. In many systems, this noise signal's source is an Additive White Gaussian Noise (AWGN) that is present in the channel, an assumption that is made for the purposes of describing this embodiment.

Following sampling, I(n)=K(2E_(S)·cos(−Δω·nT+θ_(e)+φ_(n))+n_(I)(nT)) 150 and Q(n)=K(2E_(S)·sin(−Δω·nT+θ_(e)+φ_(n))+n_(Q)(nT)) 155 are generated, with θ_(e)≡θ_(i)−θ_(o) and n_(I)(nT),n_(Q)(nT)˜N(0,2N₀E_(S)), where

$E_{S} \equiv {\frac{1}{2}{\int_{- \infty}^{\infty}{{{p(t)}}^{2}{\mathbb{d}t}}}}$ is the symbol energy and N₀/2 is the AWGN power spectral density. The phase of the received (complex) baseband symbol r_(n)≡I(n)+j·Q(n) is φ_(n)≡tan⁻¹(Q(n)/I(n)), which as discussed in more detail below is the instantaneous phase of the received baseband symbol 405 (“received phase”). In polar coordinates, r_(n)=|r_(n)|exp(jφ_(n)).

Without loss of generality, for mathematical convenience it can be assumed that ∀n,φ_(n)=0, whereupon:

$\begin{matrix} {{\varphi_{n} \equiv {\tan^{- 1}\left( \frac{Q(n)}{I(n)} \right)}} = {\tan^{- 1}\left( \frac{{\sin\left( {{{- \Delta}\;{\omega \cdot {nT}}} + \theta_{e}} \right)} + {{n_{Q}({nT})}/\left( {2E_{S}} \right)}}{{\cos\left( {{{- {\Delta\omega}} \cdot {nT}} + \theta_{e}} \right)} + {{n_{I}({nT})}/\left( {2E_{S}} \right)}} \right)}} & (1) \end{matrix}$

The received phase φ_(n) 405 is independent of the value of K of the amplifiers 125, 140, as can be seen by the fact that K does not appear in (1). Since the exemplary embodiments rely on operations upon φ_(n) 405, this means that the embodiments herein do not depend upon K nor upon the AGC's control of K. This is advantageous, since the AGC is usually non-ideal and the value of K usually does fluctuate. The only dependence on the AGC is indirect and weak, and will manifest itself if the AGC is so bad that I(t) 128 and Q(t) 142 are either overdriven or underdriven, which will cause one or more of the effects known by those skilled in the art as saturation, compression, and quantization noise to be significant. However, usually the AGC can easily be made to be sufficiently robust in order to prevent frequent occurrences of overdriving and underdriving, so that the independence of the exemplary embodiment from K is a real and substantial advantage in practice.

Let: Δφ_(n)≡φ_(n)−(−ΔωnT+θ _(e))  (2)

Since it has been assumed for mathematical convenience in a non-limiting manner that ∀n,φ_(n)=0, the physical meaning of Δφ_(n) is clear: it is the phase error in the received phase of any one of the received baseband symbols, φ_(n) 405, relative to the symbol's ideal phase φ_(n), that can be attributed to noise, n_(I)(nT) and n_(Q)(nT) (to see this, substitute n_(I)(nT)=n_(Q)(nT)=0 in the expressions for I(n) and Q(n), and then φ_(n)=tan⁻¹(Q(n)/I(n))=−ΔωnT+θ_(e)→Δφ_(n)−(−ΔωnT+θ_(e))=0). Δφ_(n) as defined in (2) is distributed as a Rician phase pdf (probability distribution function) given by:

$\begin{matrix} \begin{matrix} {{p_{C}\left( {\Delta\;\phi} \middle| \chi \right)} \equiv {p\left( {{\Delta\;\phi_{n}} = {\left. {\Delta\;\phi} \middle| {E_{S}/N_{0}} \right. = \chi}} \right)}} \\ {= {\frac{{\mathbb{e}}^{- \chi}}{2\pi}\left\lbrack {1 + {\sqrt{2\chi}{\cos({\Delta\phi})}{{\exp\left( {\chi \cdot {\cos^{2}\left( {\Delta\;\phi} \right)}} \right)} \cdot}}} \right.}} \\ \left. {\int_{- \infty}^{{\cos{({\Delta\;\phi})}}\sqrt{2\chi}}{{\mathbb{e}}^{{- y^{2}}/2}\ {\mathbb{d}y}}} \right\rbrack \end{matrix} & (3) \end{matrix}$ where −π≦Δφ≦π. Implementation of the Phase Determiner 400

A phase determiner 400 in the form an inverse tangent function is used to generate φ_(n) 405. Although in the depicted embodiments the inverse tangent function is used to implement the phase determiner 400, in alternative embodiments (not depicted) the phase determiner 400 may be implemented in a different manner, and not necessarily using the inverse tangent function. The phase determiner 400 can be the same one used for determining the signal phase for subsequently making decisions upon the received symbols (a common task in demodulators). Moreover, φ_(n) 405 can be used elsewhere in the receiver regardless of the value of M. Therefore, if structures are implemented for various Ms in the same receiver, such as in a receiver that has support for several modulations, the receiver may use one instance of the phase determiner 400. This reduces the resources needed and is another advantage of the exemplary embodiment. The inverse tangent in the exemplary embodiment is one whose range is [−π,π), that is, it takes into account the quadrant in which r_(n) is present. For example, it behaves similarly to the function atan 2 in the program Matlab™.

Phase Detector

FIGS. 2 and 3 show embodiments for BPSK and QPSK, respectively, of a base function used to generate the metric that is a function of the phase difference between the modulated and local carriers. In the embodiments depicted in FIGS. 2 and 3, the base function is denoted g_(M)(θ), where θ is an input variable representing an angle in radians and where M is the modulation order, and has a curve that is a triangle wave with periodicity of 2π/M radians. When used to generate the metric, φ_(n) 405 in radians is input to the base function, and g_(M)(φ_(n)) is evaluated. The triangle wave includes positively and negatively sloped linear segments that connect to each other at the triangle wave's maxima and minima. The absolute values of the slopes of the positively and negatively sloped segments have identical absolute values. The zero-crossings of the positively sloped linear segments in the depicted embodiments, which correspond to the stable PLL equilibrium points in the exemplary embodiment, result when φ_(n) 405 is one of the ideal symbol phases and when the modulation used utilizes uniformly distributed symbol phases within any continuous angular interval spanning 2π radians, as is the case with BPSK and QPSK; that is, in the depicted embodiments, when there is zero phase error, the output of the base function is zero. For example, for BPSK (M=2), see FIG. 2. For QPSK (M=4), see FIG. 3. g_(M)(θ) is defined through the periodic extension of its input value over the entire range of θε(−∞,∞) (that is, taking into account that every phase can be expressed as itself plus any integer multiple of 2π), but the range of interest and implementation of g_(M)(θ) for the current embodiment is chosen to be θε[−π,π) radians since this covers the entire unique angle range of 2π. An alternative embodiment is with the stable equilibrium point positioned at the zero crossings of the negative-sloped lines. Alternative embodiments of g_(M)(θ) may be such that their stable equilibrium points are any set of M points that are uniformly spaced in the interval θε[−π,π) with a spacing of 2π/M; in particular, in the case where those phases do not correspond to the ideal symbol phases, the symbol decision logic in the receiver should be such that it takes this into account, as known to those skilled in the art. It is also noted that any angle can of course be expressed as itself plus any integer multiple of 2π. Thus, in alternative embodiments, the angles can be defined as residing in any interval of at least length 2π (which usually would be a continuous interval (for simplicity) but not necessarily so), in which case this entails a corresponding adaptation of the definition of g_(M)(θ). In the present embodiment, g_(M)(θ) has a maximum of 1 and a minimum of −1. In other embodiments, g_(M)(θ) may have a maximum and minimum with different values, such as A for the maximum and −A for the minimum, where “A” is some non-zero value. In general, the maxima and minima of g_(M)(θ) will have identical absolute values (in the exemplary embodiment, for example, the value of this absolute value is “1”). In some embodiments g_(M)(θ) may have a DC offset, either inevitable (e.g. due to quantization) or intentional, that is for example the maximum will be A+DC and the minimum will be (−A+DC), where “DC” represents the DC offset. However, excessive DC offsets may cause performance degradations.

For some modulations, such as some instances of circular QAM and some instances of PAM-PSK (Pulse Amplitude Modulation Phase Shift Keying), the modulation may have two or more-fold rotational symmetry and the distinct ideal symbol phases of the modulation may be uniformly distributed. It may be possible to use multiple values of M when evaluating the base function g_(M)(θ) for such modulations. For example, the modulation may have M-fold rotational symmetry where M is a first value, and the modulation's constellation diagram may have M distinct ideal symbol phases, where M is a second value that differs from the first value. For example, this is true for certain constellations of circular QAM and PAM-PSK. For such modulations, it is within the purview of a skilled person to select which value of M is better to use when determining the appropriate base function g_(M)(θ).

A useful attribute of the triangular phase detector is that with clever implementation that takes advantage of the linear characteristic of the curves of g_(M)(•), the implementations of certain embodiments of g_(M)(θ) can be made to consume relatively few hardware resources. As already noted, the phase determiner 400 can be the same one used for decisions upon the received symbols, and therefore by using these phase detectors a relatively efficient implementation can be achieved, especially when multiple modulations are desired.

As a preliminary step, for the exemplary embodiment, the phase θ is encoded using a suitable encoding such as two's complement encoding which is b bits wide, in the exemplary embodiment from bits b−1 (the MSB (Most Significant Bit)) to 0 the LSB (Least Significant Bit). In the exemplary embodiment the MSB is the sign bit. The notation θ [x] is used in order to refer to significant bit number “x” in the binary representation of θ. “x” is not necessarily the bit with index “x” counting from the right (as is the case in two's complement, starting with bit 0 as the LSB); in general, θ[0] would refer to the LSB, θ[1] would refer to the bit which is of the least significance except for the LSB, θ[2] would refer to the bit that is of the least significance except for θ[1] and θ[0], etcetera. For example, for the exemplary embodiment, θ[b−1] is the sign bit and MSB, and θ[0] is the LSB. The notation θ[x:y] is used to denote the binary number formed by the sequence of bits θ[x], θ[x−1], θ[x−2], . . . , θ[y]. For example, θ[3:0] signifies the binary number composed of the bits θ[3], θ[2], θ[1], θ[0] (e.g., if the code representing θ is 11110011 then θ[3:0]=0011 in this case). Additionally, the codes are assigned to linearly encompass the entire angular range, i.e. [−π,π) radians. That is, the lowest possible code (=the most negative code) represents the angle −π radians, and the highest possible encoding (=the most positive code) represents π−ε radians, where ε=π/(2^(b-1)). To give a few examples, if there are b=8 bits in the code, the code “10000000” represents the angle −π, the code “10000001” represents the number −π+π/128, “10000010” represents the angle −π+2π/128 and so on; the code “00000000” represents the angle 0, the code “00000001” represents the angle π/128, the code “00000010” represents the angle 2π/128, and so on, and the highest code 01111111 represents the angle 127π/128=π−π/128=π−π/(2^(b-1)). The purpose of this encoding is twofold. First, it maximizes the dynamic range utilization of the binary representation; since the angular range is [−π,π) radians, the binary encoding encompasses this range and no codes are wasted. Hence quantization noise is minimized and the dynamic range of the binary representation is fully utilized. Secondly, as shall be seen below this is one way in which a relatively efficient implementation of g_(M)(•) can be obtained. Other encodings, such as one's-complement and sign-magnitude encoding can also similarly be used in other embodiments to attain similar efficiencies; the chosen encoding may, but does not need to, linearly encompass substantially all of the possible phases. It is also noted that the position of the LSB (which is the least significant) and MSB (which is the most significant) within the code word, as well as the position of the intermediate bits may depend on the encoding scheme used, which may vary from embodiment to embodiment. Additionally, for convenience the concatenation operation is defined as <x,y> which signifies the concatenation of the binary numbers x and y. For example, <0101,1111> is the binary number 01011111.

To see how it is possible to efficiently implement g_(M)(•), note the linear characteristic of the base function g_(M)(•) at each interval of length π/(2M), e.g. for BPSK the intervals are [−π,−3π/4), [−3π/4,−π/2), [−π/2,−π/4), [−π/4,0), [0,π/4), [π/4,π/2), [π/2,3π/4), [3π/4,π), as can be seen in FIG. 9. In each of these intervals the characteristic of g_(M)(•) is completely linear and has the same polarity. This can be exploited by cleverly encoding the angle, for example in two's complement notation, in order to implement the phase detection characteristic.

First, a principal angle is defined as:

$\begin{matrix} {\theta_{P} = \frac{\theta\;{{mod}\left( {\pi/\left( {2M} \right)} \right)}}{\pi/\left( {2M} \right)}} & (4) \end{matrix}$

Note that the “mod” (modulo) function is defined such that the value of θ_(P) is positive and is between 0 and 1, i.e. its range is [0,1). That is, the infimum of θp is 0 and the supremum of θ_(P) is 1. An example of θ_(P) for BPSK can be seen in FIG. 9.

Now, tables of the value of g₂(θ) as a function of θ_(P) and g₄(θ) as a function of θ_(P) are constructed, as shown below.

TABLE 1 Value of g₂(θ) as a function of θ_(P) Angular Value of Interval g₂(θ) as a θ_(P) Addition for input function Mul- to θ_(P) or − variable θ of θ_(P) tiplier θ_(P) θ[b − 1] θ[b − 2] θ[b − 3] [−π, −3π/4) θ_(P) 1 0 1 0 0 [−3π/4, 1 − θ_(P) −1 1 1 0 1 −π/2) [−π/2, −π/4) −θ_(P) −1 0 1 1 0 [−π/4, 0) −1 + θ_(P) 1 −1 1 1 1 [0, π/4) θ_(P) 1 0 0 0 0 [π/4, π/2) 1 − θ_(P) −1 1 0 0 1 [π/2, 3π/4) −θ_(P) −1 0 0 1 0 [3π/4, π) −1 + θ_(P) 1 −1 0 1 1

TABLE 2 Value of g₄(θ) as a function of θ_(P) Value of g₄(θ) as a Addition Angular Interval function θ_(P) to θ_(P) or − for input variable θ of θ_(P) Multiplier θ_(P) θ[b − 1] θ[b − 2] θ[b − 3] θ[b − 4] [−π, −7π/8) θ_(P) 1 0 1 0 0 0 [−7π/8, −3π/4) 1 − θ_(P) −1 1 1 0 0 1 [−3π/4, −5π/8) −θ_(P) −1 0 1 0 1 0 [−5π/8, −π/2) −1 + θ_(P) 1 −1 1 0 1 1 [−π/2, −3π/8) θ_(P) 1 0 1 1 0 0 [−3π/8, −π/4) 1 − θ_(P) −1 1 1 1 0 1 [−π/4, π/8) −θ_(P) −1 0 1 1 1 0 [π/8, 0) −1 + θ_(P) 1 −1 1 1 1 1 [0, π/8) θ_(P) 1 0 0 0 0 0 [π/8, π/4) 1 − θ_(P) −1 1 0 0 0 1 [π/4, 3π/8) −θ_(P) −1 0 0 0 1 0 [3π/8, π/2) −1 + θ_(P) 1 −1 0 0 1 1 [π/2, 5π/8) θ_(P) 1 0 0 1 0 0 [5π/8, 3π/4) 1 − θ_(P) −1 1 0 1 0 1 [3π/4, 7π/8) −θ_(P) −1 0 0 1 1 0 [7π/8, π) −1 + θ_(P) 1 −1 0 1 1 1

For a compact hardware implementation, note that, in two's complement notation of b bits, up to an inaccuracy of the LSB, in order to compute the phase detector (assuming the MSB is bit b−1 and the LSB is bit 0):

-   -   1. θ_(P) is the signed binary two's complement number         <0,θ[b-3-log₂ M:0]> (concatenation of “0” and θ[b-3-log₂ M:0]),         where it is understood that in the numerical encoding convention         chosen by the designer the range of θ_(P) is [0,1) (or as close         to that range as can be expressed by the resolution of the         quantization of θ_(P)).     -   2. θ_(P) is either inverted or not according to bits θ[b-log₂         M-1:b-log₂ M-2] of θ, for example as seen in Table 1 and Table         2.     -   3. Either 1, −1 or 0 (or as close to those values as can be         expressed by the resolution of the quantization) is added to         θ_(P) or its inverse according to bits θ[b-log₂ M-1:b-log₂ M-2],         for example as seen in Table 1 and Table 2.

In this way, multiplications and any other complicated operations can be avoided, and there is no need for lookup tables. The base function can be implemented using elementary gates, multiplexers, and additions. Moreover, the overhead for generating a phase detector for a different modulation is quite minimal, since no new computation of θ is necessary.

A schematic illustration of the efficient hardware implementation for computation of g_(M)(θ) for an exemplary embodiment is shown in FIG. 5. From the input variable θ 500, which is in the exemplary embodiment expressed as a two's complement binary fixed point notation, the bits whose indices θ[b-2-log₂ M] 512 and θ[b-1-log₂ M] 510 are passed through an exclusive OR (XOR) gate 520 and the resulting signal 530 is passed through an array of XOR gates 540 with bits <0,θ[b-3-log₂ M:0]> (concatenation of “0” and θ[b-3-log₂ M:0]) 505. This is done via XOR gates between each of the bits of <0,θ[b-3-log₂ M:0]> 505 and the signal 530. The array of XOR gates 540 is represented by a single XOR symbol (but which, it is made clear, reflects the aforementioned bitwise XOR). Collectively, the XOR gates 520, 540 act as inverting hardware that invert θ_(P) depending on the value of bits θ[b-2-log₂ M] 512 and θ[b-1-log₂ M] 510. The bits having indices θ[b-log₂ M-1:b-log₂ M-2] 515, 512, are used to control the selection input of data selection hardware such as a multiplexer 550. The output 555 of the multiplexer 550 contains the constant 1, −1, or 0, which is added to θ_(P) or −θ_(P) in order to form g_(M)(θ), as shown for example for BPSK and QPSK in Table 1 and Table 2, respectively, and as discussed above. The value of θ_(P) or −θ_(P), as used to form g_(M)(θ) as shown for example for BPSK and QPSK in Table 1 and Table 2, respectively, is the signal 545 that is output from the array of XOR gates 540. The value of g_(M)(θ) 565 is generated by the summation by adding hardware such as an adder 560 of the output 555 of the multiplexer 550 and the output 545 of the array of XOR gates 540. This summation complies with all the rules for summation of signals, as appropriate for the chosen encoding (two's complement in the exemplary embodiment).

This implementation of g_(M)(•), the metric generator 410, is the one that is used in order to generate the metric g_(M)(φ_(n)) 415, where φ_(n) 405 is the input to that function block as used in the exemplary embodiment, as shown in FIG. 4. The angle φ_(n) is encoded in the same manner as discussed for θ above.

For the exemplary embodiment, even though the input of g_(M)(θ) by convention signified the range [−π,π), the output by convention spans the range [−1,1). However, this is not necessarily the case in alternative embodiments. The range which the numerical encodings span is defined according to the designer's choice; for other embodiments, the output of g_(M)(θ) could span other ranges than [−1,1).

A SystemVerilog implementation of g_(M)(•) for various values of M, which requires no multiplications or other complicated operations, nor any significantly size lookup table, is shown in FIG. 6. The values of M supported by this implementation are M=2, M=4, M=8, and M=16. The input to the function is the input “theta”, in two's complement notation. The phase detector outputs are in All_PD_values[num_modulations−1:0], also in two's complement notation (format is (width bits, from MSB to LSB): 1 sign bit, 1 whole bit, fraction bits). A selected output PD_value in two's complement is also provided (format is (width bits, from MSB to LSB): 1 sign bit, fraction bits), which is selected by the input log 2M_minus_(—)1 (which is 0 for M=2, 1 for M=4, 2 for M=8, and 3 for M=16). FIG. 6 also shows how practical issues such as sign extension and binary point alignment are handled for operations such as inversion and addition of the various quantities.

Although in the exemplary embodiment a signed two's complement notation is used, other numerical representations can be used, including but not limited to one or more of floating point and other fixed point or variable point notations, and non-binary encodings.

Strictly speaking obtaining the negative of a number in two's complement notation, i.e. obtaining −x for a number x, is performed via (˜x)+1, where “˜” represents bitwise inversion. The procedure described above and in FIGS. 5 and 6 may be modified to take this into account in alternative embodiments. Due to the asymmetric nature of two's complement encoding (i.e. that there is one more of the negative values than of the positive values) in many systems (especially signal-processing structures) −x is calculated simply as (˜x) in order to avoid potential overflow problems and in order to simplify logic. This is the procedure adopted for all the exemplary embodiments for two's complement representation.

Implementation of g_(M)(•) for Alternative Embodiments

In general, for alternative embodiments, a proportionality constant and modulo function ranges are chosen so that θ_(P) is between 0 and A, i.e. the range of θ_(P) is [0,A), where A is the absolute value of the maximum of the function g_(M)(•). That is, the infimum of θ_(P) is 0 and the supremum of θ_(P) is A. The normalization in such cases would be

$\theta_{P} \equiv {A \cdot {\frac{\theta\;{{mod}\left( {\pi/\left( {2M} \right)} \right)}}{\pi/\left( {2M} \right)}.}}$ For example, for BPSK:

TABLE 3 Value of g₂(θ) as a function of θ_(P) for alternative embodiment where the maximum value of g₂(θ) is A Angular Value of Interval g₂(θ) as θ_(P) Addition for input a function Mul- to θ_(P) or − variable θ of θ_(P) tiplier θ_(P) θ[b − 1] θ[b − 2] θ[b − 3] [−π, −3π/4) θ_(P) 1 0 1 0 0 [−3π/4, A − θ_(P) −1 A 1 0 1 −π/2) [−π/2, −π/4) −θ_(P) −1 0 1 1 0 [−π/4, 0) −A + θ_(P) 1 −A 1 1 1 [0, π/4) θ_(P) 1 0 0 0 0 [π/4, π/2) A − θ_(P) −1 A 0 0 1 [π/2, 3π/4) −θ_(P) −1 0 0 1 0 [3π/4, π) −A + θ_(P) 1 −A 0 1 1

Similar tables can be constructed for other values of M and other modulations. These tables allow us to reach a relatively efficient implementation for the metric generator, as follows.

For a compact implementation for the exemplary embodiment, note that, in two's complement notation of b bits, up to an inaccuracy of the LSB (Least Significant Bit), in order to compute the base function (again, assuming the MSB (Most Significant Bit) is the bit of index b−1 and the LSB is the bit of index 0):

-   -   1. θ_(P) is B multiplied by a signed binary two's complement         number <0,θ[b-3-log₂ M:0]> (concatenation of “0” and θ[b-3-log₂         M:0]), where B is a proportionality constant such that the range         of θ_(P) is [0,A) according to the numerical encoding convention         chosen by the designer (or as close to that range as can be         expressed by the resolution of the quantization of θ_(P))).     -   2. θ_(P) is either inverted or not, according to bits θ[b-log₂         M-1:b-log₂ M-2] of θ, for example as seen in Table 3.     -   3. Either A, −A or 0 (or as close to those values as can be         expressed by the resolution of the quantization) is added to         θ_(P) or its inverse according to bits θ[b-log₂ M-1:b-log₂ M-2],         for example as seen in Table 3.

Also, for convenience, the “principal angle precursor” is defined as <0,θ[b-3-log₂ M:0]> for two's complement notation. In this case, it is clear from the above definitions that θ_(P) is B multiplied by the principal angle precursor. In embodiments in which B equals one and the principal angle precursor is accordingly not amplified, the principal angle precursor and the principle angle are equal, as is the case for the embodiment described in relation to Tables 1 and 2, above. “Amplification” in the context of this disclosure does not necessarily mean that the amplitude increases; “amplification” by B in the context of this disclosure could also mean a reduction in amplitude (if B is less than 1) or no change in amplitude (if B equals 1).

A schematic illustration of an efficient implementation for computation of g_(M)(θ) for such embodiments is shown in FIG. 10. From the input variable θ 1000, which in the exemplary embodiment is expressed in two's complement binary fixed point notation, the bits whose indices are θ[b-2-log₂ M] 1012 and θ[b-1-log₂ M] 1010 are passed through an exclusive OR (XOR) gate 1020 and the signal 1030 that results is passed through an array of exclusive OR gates 1040 with bits <0,θ[b-3-log₂ M:0]> (concatenation of “0” and θ[b-3-log₂ M:0]), 1005. This is done via XOR gates between each of the bits of <0,θ[b-3-log₂M:0]> 1005 and the signal 1030, which is represented by a single XOR symbol 1040 (but which, it is made clear, reflects the aforementioned bitwise XOR). The XOR gates 1020, 1040 represent the inverting hardware used to perform controlled inversion. The bits whose indices are θ[b-log₂ M-1:b-log₂ M-2] 1015, 1012, are used to control the selection input of a data selector such as a multiplexer 1050. The output 1055 of that multiplexer 1050 contains the constant A, −A, or 0 that is added to θ_(P) or −θ_(P) in order to generate the metric g_(M)(θ), as shown for example for BPSK in Table 3 and as discussed above. The value of θ_(P) or −θ_(P), as used to generate the metric g_(M)(θ) as shown for example for BPSK in Table 3, is the signal 1048 that is obtained by amplifying the result of the controlled inversion via an amplification device 1047 such as a multiplier or a bit shifter. The value of the metric g_(M)(θ) 1065 is generated by the summation via adding hardware such as an adder 1060 of the output 1055 of the multiplexer 1050 and the output 1048 of the amplification device 1047. This summation complies with all the rules for summation of signals, as appropriate for the chosen representation (e.g. two's complement in the exemplary embodiment). In the case that the signal at the output of the controlled inversion 1045 already has a supremum of A according to the numerical encoding convention chosen by the designer, then the amplification device 1047 may be omitted, that is, the output of the controlled inversion 1045 can be connected directly to the adding hardware 1060.

In alternative embodiments, where in the various exemplary embodiments the bits θ[b-3-log₂ M:0] are used, it is possible to use a plurality of the most significant bits of those bits, for example θ[b-3-log₂ M:0] (all the most significant bits of θ[b-3-log₂ M:0], as is done in the exemplary embodiments), or θ[b-3-log₂ M:1] (all the most significant bits of θ[b-3-log₂ M:0] except the LSB), or θ[b-3-log₂ M:2] (all the most significant bits of θ[b-3-log₂ M:0] except the two least significant bits), etc. In an embodiment that differs from the exemplary embodiment wherein not all the most significant bits of θ[b-3-log₂ M:0] are used, appropriate modifications are made to other parts of the receiver to accommodate the number of bits used. Such embodiments may be useful when a further reduction in resources is desired; however, such embodiments may be more susceptible to quantization noise.

Phase Detector Performance Analysis

The S-curve of the phase detector is computed via a Fourier series representation of g_(M)(φ_(n)):

$\begin{matrix} \begin{matrix} {{S_{M,\chi}\left( \theta_{e} \right)} = {E\left\lbrack {g_{M}\left( \varphi_{n} \right)} \middle| \theta_{e} \right\rbrack}} \\ {= {E\left\lbrack {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{8}\frac{\left( {- 1} \right)^{k}{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}\varphi_{n}} \right)}}{\left( {{2k} + 1} \right)^{2}}}} \middle| \theta_{e} \right\rbrack}} \end{matrix} & (5) \end{matrix}$ (note the implicit dependence upon χ through φ_(n)). Now, using:

                                           (6)      φ_(n) = Δ ϕ_(n) + θ_(e)                                     And:                                            (7) $\begin{matrix} {{S_{M,\chi}\left( \theta_{e} \right)} = {E\left\lbrack {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{8}\frac{\left( {- 1} \right)^{k}{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}\left( {{\Delta\;\phi_{n}} + \theta_{e}} \right)} \right)}}{\left( {{2k} + 1} \right)^{2}}}} \middle| \theta_{e} \right\rbrack}} \\ {= {E\left\lbrack {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{8}{\left( {- 1} \right)^{k}\left( \frac{\begin{matrix} {{{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}{\Delta\phi}_{n}} \right)}{\cos\left( {{M \cdot \left( {{2k} + 1} \right)}\theta_{e}} \right)}} +} \\ {{\cos\left( {{M \cdot \left( {{2k} + 1} \right)}{\Delta\phi}_{n}} \right)}{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}\theta_{e}} \right)}} \end{matrix}}{\left( {{2k} + 1} \right)^{2}} \right)}}} \middle| \theta_{e} \right\rbrack}} \\ {= {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{8}{\left( {- 1} \right)^{k}\left( \frac{\begin{matrix} {{E\left\lbrack {{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}{\Delta\phi}_{n}} \right)}{\cos\left( {{M \cdot \left( {{2k} + 1} \right)}\theta_{e}} \right)}} \middle| \theta_{e} \right\rbrack} +} \\ {E\left\lbrack {{\cos\left( {{M \cdot \left( {{2k} + 1} \right)}{\Delta\phi}_{n}} \right)}{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}\theta_{e}} \right)}} \middle| \theta_{e} \right\rbrack} \end{matrix}}{\left( {{2k} + 1} \right)^{2}} \right)}}}} \\ {= {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{8}{\left( {- 1} \right)^{k}\left( \frac{{E\left\lbrack {\sin\left( {{M \cdot \left( {{2k} + 1} \right)}{\Delta\phi}_{n}} \right)} \right\rbrack}{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}\theta_{e}} \right)}}{\left( {{2k} + 1} \right)^{2}} \right)}}}} \end{matrix}$

Given that:

$\begin{matrix} {{E\left\lbrack {\cos\left( {{M \cdot \left( {{2k} + 1} \right)}{\Delta\phi}_{n}} \right)} \right\rbrack} = {\frac{\sqrt{\pi \cdot \chi}}{2} \cdot {{\exp\left( \frac{- \chi}{2} \right)}\begin{bmatrix} {{I_{{({{{({{2k} + 1})}M} - 1})}/2}\left( \frac{\chi}{2} \right)} +} \\ {I_{{({{{({{2k} + 1})}M} + 1})}/2}\left( \frac{\chi}{2} \right)} \end{bmatrix}}}} & (8) \end{matrix}$

where I_(n) (•) is the n-th order modified Bessel function of the first kind, the following results:

$\begin{matrix} {{S_{M,\chi}\left( \theta_{e} \right)} = {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{\infty}{\left( {- 1} \right)^{k}\left( {\left( {\frac{\sqrt{\pi \cdot \chi}}{2} \cdot {{\exp\left( \frac{- \chi}{2} \right)}\begin{bmatrix} {{I_{{({{{({{2k} + 1})}M} - 1})}/2}\left( \frac{\chi}{2} \right)} +} \\ {I_{{({{{({{2k} + 1})}M} + 1})}/2}\left( \frac{\chi}{2} \right)} \end{bmatrix}}} \right)/\left( {{2k} + 1} \right)^{2}} \right){\sin\left( {{M \cdot \left( {{2k} + 1} \right)}\theta_{e}} \right)}}}}} & (9) \end{matrix}$

As a useful approximation, using the fact that

$\begin{matrix} {{\frac{\sqrt{\pi \cdot \chi}}{2} \cdot {{\exp\left( \frac{- \chi}{2} \right)}\begin{bmatrix} {{I_{{({{{({{2k} + 1})}M} - 1})}/2}\left( \frac{\chi}{2} \right)} +} \\ {I_{{({{{({{2k} + 1})}M} + 1})}/2}\left( \frac{\chi}{2} \right)} \end{bmatrix}}}\overset{{{high}\mspace{14mu}{SNR}}\mspace{11mu}}{\rightarrow}{\exp\left( \frac{{- \left( {{2k} + 1} \right)^{2}}M^{2}}{4\chi} \right)}} & (10) \end{matrix}$

Then approximately at high SNR:

$\begin{matrix} \begin{matrix} {{S_{M,\infty}\left( \theta_{e} \right)} = {\lim\limits_{\chi\rightarrow\infty}{S_{M,\chi}\left( \theta_{e} \right)}}} \\ {= {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{\infty}{\left( {- 1} \right)^{k}\left( {{\exp\left( \frac{- {M^{2}\left( {{2k} + 1} \right)}}{4\chi} \right)}/\left( {{2k} + 1} \right)^{2}} \right)\sin}}}} \\ {\left( {{M \cdot \left( {{2k} + 1} \right)}\theta_{e}} \right)} \end{matrix} & (11) \end{matrix}$ Expression (11) is useful for calculations at high SNR, since in some numerical programs such as Matlab™ the calculation of Bessel functions is sometimes not sufficiently accurate at high SNRs. The gain of the phase detector is:

$\begin{matrix} \begin{matrix} \left. {C_{M,\chi} \equiv \frac{\partial{S_{M,\chi}\left( \theta_{e} \right)}}{\partial\theta_{e}}} \right|_{\theta_{e} = 0} \\ {= \left( {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{\infty}{\left( {- 1} \right)^{k}\left( {\left( {\frac{\sqrt{\pi \cdot \chi}}{2} \cdot {{\exp\left( \frac{- \chi}{2} \right)}\begin{bmatrix} {{I_{{({{{({{2k} + 1})}M} - 1})}/2}\left( \frac{\chi}{2} \right)} +} \\ {I_{{({{{({{2k} + 1})}M} + 1})}/2}\left( \frac{\chi}{2} \right)} \end{bmatrix}}} \right)/\left( {{2k} + 1} \right)^{2}} \right)}}} \right.} \\ {M \cdot \left( {{2k} + 1} \right.} \\ {= {\frac{8 \cdot M}{\pi^{2}}{\sum\limits_{k = 0}^{\infty}{\left( {- 1} \right)^{k}{\left( {\frac{\sqrt{\pi \cdot \chi}}{2} \cdot {{\exp\left( \frac{- \chi}{2} \right)}\begin{bmatrix} {{I_{{({{{({{2k} + 1})}M} - 1})}/2}\left( \frac{\chi}{2} \right)} +} \\ {I_{{({{{({{2k} + 1})}M} + 1})}/2}\left( \frac{\chi}{2} \right)} \end{bmatrix}}} \right)/\left( {{2k} + 1} \right)}}}}} \end{matrix} & (12) \end{matrix}$

At high SNR:

$\begin{matrix} {{{C_{M,\infty} \equiv {\lim\limits_{\chi\rightarrow\infty}C_{M,\chi}}} = {\frac{8 \cdot M}{\pi^{2}}{\sum\limits_{k = 0}^{\infty}\frac{\left( {- 1} \right)^{k}}{\left( {{2k} + 1} \right)}}}}{{{Using}\mspace{14mu}{\sum\limits_{k = 0}^{\infty}\frac{\left( {- 1} \right)^{k}}{\left( {{2k} + 1} \right)}}} = {\frac{\pi}{4}\text{:}}}} & (13) \\ {C_{M,\infty} = {{\frac{8 \cdot M}{\pi^{2}}\frac{\pi}{4}} = \frac{2M}{\pi}}} & (14) \end{matrix}$

This can be verified graphically from the S-curve. The normalized gain of the phase detector is defined as:

                                          (15) $\begin{matrix} {\alpha_{M,\chi} \equiv \frac{C_{M,\chi}}{C_{M,\infty}}} \\ {= {\frac{4}{\pi}{\sum\limits_{k = 0}^{\infty}{\left( {- 1} \right)^{k}{\left( {\frac{\sqrt{\pi \cdot \chi}}{2} \cdot {{\exp\left( \frac{- \chi}{2} \right)}\begin{bmatrix} {{I_{{({{{({{2k} + 1})}M} - 1})}/2}\left( \frac{\chi}{2} \right)} +} \\ {I_{{({{{({{2k} + 1})}M} + 1})}/2}\left( \frac{\chi}{2} \right)} \end{bmatrix}}} \right)/\left( {{2k} + 1} \right)}}}}} \end{matrix}$

A graph of α_(M,χ) is shown in FIG. 8 (the squares, denoted as the curves labeled TR_(M), where M=2,4,8,16 for M-PSK; the black squares are theory, while the transparent squares are simulation) and it is compared to the normalized gain of the prior art detector discussed in Y. Linn, “Robust M-PSK phase detectors for carrier synchronization PLLs in coherent receivers: theory and simulations,” IEEE Trans. Commun., vol. 57, no. 6, pp. 1794-1805, June 2009, which is represented by triangles (computed via theory) and denoted by d_(M), where M=2,4,8,16 for M-PSK. As can be seen, the phase detector presented here has well-behaved normalized gains.

The normalized equivalent loop noise at φ_(e)≈0 is defined as:

$\begin{matrix} {{N_{M,\chi}(n)} \equiv {\lim\limits_{\theta_{e}\rightarrow 0}{\left( {{g_{M}\left( \varphi_{n} \right)} - {S_{M,\chi}\left( \theta_{e} \right)}} \right)/C_{M,\infty}}}} & (16) \end{matrix}$

which is:

$\begin{matrix} \begin{matrix} {{N_{M,\chi}(n)} \equiv {\left( {\frac{8}{\pi^{2}}{\sum\limits_{k = 0}^{\infty}{\left( {- 1} \right)^{k}\frac{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}{\Delta\phi}_{n}} \right)}{\left( {{2k} + 1} \right)^{2}}}}} \right)/\frac{2M}{\pi}}} \\ {= {\frac{4}{\pi\; M}{\sum\limits_{k = 0}^{\infty}{\left( {- 1} \right)^{k}\frac{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}{\Delta\phi}_{n}} \right)}{\left( {{2k} + 1} \right)^{2}}}}}} \end{matrix} & (17) \end{matrix}$

The PD's self noise is defined as: ξ_(M,χ)≡2·χ·var(N _(M,χ)(n))  (18)

Substituting results in:

$\begin{matrix} \begin{matrix} {\xi_{M,\chi} = {2{\chi \cdot {{var}\left( {N_{M,\chi}(n)} \right)}}}} \\ {= {2\chi{\int_{- \pi}^{\pi}{\left( {\frac{4}{\pi\; M}{\sum\limits_{k = 0}^{\infty}{\left( {- 1} \right)^{k}\frac{\sin\left( {{M \cdot \left( {{2k} + 1} \right)}\tau} \right)}{\left( {{2k} + 1} \right)^{2}}}}} \right)^{2}{{p_{R}\left( \tau \middle| \chi \right)} \cdot \ {\mathbb{d}\tau}}}}}} \end{matrix} & (19) \end{matrix}$

One of the most widely accepted performance metrics of a phase detector is the phase-error variance var(θ_(e)) (or equivalently, the loop−SNR ρ≡1/var(θ_(e))) of a PLL that uses that phase detector. This is due to the fact that the phase-error variance has an important role in determining the cycle-slip rate of the carrier synchronization PLL and the SER (Symbol Error Rate). Determination of var(θ_(e)) via computer simulations is done using nonlinear models.

To evaluate the performance of the foregoing embodiments of the phase detector, computer simulations are used in order determine var(θ_(e)) for various types of phase detectors. In FIG. 7, the phase error variance obtained using the proposed phase detectors (TR₂, TR₄, TR₈. TR₁₆ for M=2, M=4, M=8, and M=16, respectively, for M-PSK) is compared to the M-th order nonlinearity (c₂, c₄, c₈. c₁₆ for M=2, M=4, M=8, and M=16, respectively, for M-PSK) and the normalized M-th order nonlinearity detector (d₂, d₄, d₈. d₁₆ for M=2, M=4, M=8, and M=16, respectively, for M-PSK) discussed in Y. Linn, “Robust M-PSK phase detectors for carrier synchronization PLLs in coherent receivers: theory and simulations,” IEEE Trans. Commun., vol. 57, no. 6, pp. 1794-1805, June 2009. As can be seen, the proposed phase detectors have performance that is virtually identical to the normalized M-th order nonlinearity detector, which was shown to have best-in-class performance. Hence, the phase detectors described in this embodiment have excellent performance.

Reduction to Practice and Approximate Resource Usage Compared to Prior Art

All the structures presented in this document have been implemented in practice and proven to work by the inventor using a Terasic DE2-115 board with an Altera Cyclone IV FPGA.

The FPGA was also used to implement the phase detector disclosed in Y. Linn, “Robust M-PSK phase detectors for carrier synchronization PLLs in coherent receivers: theory and simulations,” IEEE Trans. Commun., vol. 57, no. 6, pp. 1794-1805, June 2009, as a point of comparison. In order to attain the comparison, several documents that calculate the equivalent gate count for FPGA structures were used as sources. These are documents Altera Inc. Application Note 110: Gate Counting Methodology for APEX 20K Devices, September 1999, Xilinx Inc. Application XAPP 059: Gate Count Capacity Metrics for FPGAs, February 1997 and M. H. Rais, “Efficient Hardware Realization of Truncated Multipliers using FPGA,” International Journal of Engineering and Applied Sciences, vol. 4, no. 2, 2009. From those sources, the following approximate gate equivalences are obtained:

TABLE 4 Approximate Average FPGA Structure Equivalent Gates Logic Cell (LC) (Combinational Content) 10 Register 7.5 Embedded Memory Bit 4 Multiplier (8 bit × 8 bit) 500

Estimation of the number of gates from FPGA structures is an imprecise science, and those gate counts will differ from ASIC gate counts. Nonetheless, the values in Table 4 are useful for the purpose of making comparisons.

In the Altera Cyclone IV FPGA in the DE2-115 board used for tests, the following resource usage data was measured:

TABLE 5 Metric Total Memory Equivalent Implementation Bits LCs Gates Prior Art for BPSK 32768 1 131082 Prior Art to Add QPSK 32768 1 131082 Prior Art to Add 8-PSK 32768 1 131082 Prior Art to Add 16-PSK 32768 1 131082 Total Prior Art for BPSK, QPSK, 131072 4 524328 8-PSK, and 16-PSK Phase detector based on g₂ (•) 32768 5 131122 for BPSK To add phase detector based on 0 5 50 g₄ (•) for QPSK To add phase detector based on 0 5 50 g₈ (•) for 8-PSK To add phase detector based on 0 5 50 g₁₆ (•) for 16-PSK Total, Current Embodiment (structures 32768 20 131272 based on g_(M) (θ))

Comparing the results, the total number of required gates has decreased substantially, by about 74.96%, i.e. only about 25% of the logic resources are required as compared to prior art (131272 equivalent gates as opposed to 524328 for prior art). This also allows for a similar and corresponding reduction in power consumption and circuit area for the embodiment as compared to prior art.

As can be seen, the advantage of the present structures increases as the number of supported modulation increases, i.e. the advantage would be even greater if 5 or 6 modulations (e.g. also 32-PSK and 64-PSK) were implemented as well.

The above comparisons were done in a fair manner, that is, the chosen quantization for the present structures and those of the prior art were chosen so that both would have roughly the same performance.

As discussed above, in some of the foregoing embodiments of the phase detector, clever coding of the numerical representation of the symbol phases allows the phase detector to be implemented relatively compactly. Moreover, the foregoing embodiments allow for multiple modulations to be supported by the carrier PLL, requiring relatively few additional resources when adding support for additional modulations. This is advantageous over conventional phase detectors.

The performance of the embodiments described herein in terms of phase-error variance (the most widely used metric used by those skilled in the art) may be described in best-in-class. Moreover, the foregoing embodiments provide phase detection which is relatively independent from AGC performance and of signal levels. This is advantageous over many conventional phase detectors.

In addition to the hardware implementations discussed above, the foregoing embodiments may be encoded on to a computer readable medium that is readable by a processor so as to configure the receiver to have the functionality described above. The computer readable medium may be flash memory, RAM, any other suitable disc or semiconductor based memory, or any other suitable computer readable medium. Using software to implement the foregoing embodiments may be suitable when an embodiment of the base function is used that does not lend itself to a relatively efficient hardware implementation, or when the power consumption advantages of hardware are immaterial, for example.

For the sake of convenience, the example embodiments above are described as various interconnected functional blocks, which may be implemented using one or both of distinct hardware and software modules. This is not necessary, however, and there may be cases where these functional blocks or modules are equivalently aggregated into a single logic device, program or operation with unclear boundaries. In any event, the functional blocks, software, and hardware modules can be implemented by themselves, or in combination with other operations in one or both of hardware and software, or via any other suitable implementation method.

While particular example embodiments have been described in the foregoing, it is to be understood that other embodiments are possible and are intended to be included herein. It will be clear to any person skilled in the art that modifications of and adjustments to the foregoing example embodiments, not shown, are possible. 

What is claimed is:
 1. A method for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier, the method comprising: obtaining a baseband symbol from the modulated carrier that is modulated using the symbol according to a modulation whose constellation diagram has M-fold rotational symmetry, wherein M is a positive integer greater than or equal to 2; determining a received phase of the symbol; and generating the metric from the received phase, wherein possible metrics depend on possible received phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians.
 2. The method as claimed in claim 1, wherein a maxima and minima of the triangle wave have identical absolute values.
 3. The method as claimed in claim 1, wherein the modulated carrier is modulated according to Quadrature Amplitude Modulation.
 4. The method as claimed in claim 3, wherein the number of modulation symbols equals 2^(k), wherein k is a positive integer.
 5. The method as claimed in claim 1 where the modulation is Rectangular Quadrature Amplitude Modulation.
 6. The method as claimed in claim 1, wherein the modulated carrier is modulated according to M-ary phase shift keying.
 7. The method as claimed in claim 6, wherein M equals 2^(k), wherein k is a positive integer.
 8. The method as claimed in claim 1, wherein the modulation is selected from the group consisting of Binary Phase Shift Keying, Quaternary Phase Shift Keying, 8-Phase Shift Keying, 16-Phase Shift Keying, Rectangular Quadrature Amplitude Modulation-4, Rectangular Quadrature Amplitude Modulation-16, Rectangular Quadrature Amplitude Modulation-64, Rectangular Quadrature Amplitude Modulation-256, Rectangular Offset-Quadrature Amplitude Modulation-16, Rectangular Offset-Quadrature Amplitude Modulation-64, Rectangular Offset-Quadrature Amplitude Modulation 256, Offset-Quaternary Phase Shift Keying, Offset-8 Phase Shift Keying, Offset-16 Phase Shift Keying, and Minimum Shift Keying.
 9. The method as claimed in claim 1, wherein the received phase is expressed as being between [−π,π) radians prior to generating the metric, and wherein the base function as implemented spans only [−π,π) radians.
 10. The method as claimed in claim 1, wherein the received phase is encoded using an encoding scheme that linearly encompasses substantially all of the possible received phases.
 11. The method as claimed in claim 1, wherein the metric is generated as a function of a principal angle that is directly proportional to the received phase modulo (π/2M).
 12. The method as claimed in claim 11, wherein the principal angle is normalized such that its supremum equals the absolute value of the maxima of the triangle wave.
 13. The method as claimed in claim 11, wherein the principal angle comprises one or more of the least significant bits of the received phase.
 14. The method as claimed in claim 11, wherein generating the metric comprises: inverting the principal angle as a function of one or more bits of the received phase; and adding one of A, −A or 0 to the principal angle or its inverse as a function of two or more bits of the received phase, wherein A is the absolute value of the maxima of the triangle wave.
 15. The method as claimed in claim 11, wherein an encoding scheme is one's complement, two's complement, or sign-magnitude encoding, the received phase has b bits, and M equals 2^(k), wherein k is a positive integer.
 16. The method as claimed in claim 15, wherein the principal angle comprises a plurality of the most significant bits of bits [b-3-log₂ M:0] of the received phase.
 17. The method as claimed in claim 15, wherein the principal angle is proportional to a binary number that comprises a plurality of the most significant bits of bits [b-3-log₂ M:0] of the received phase.
 18. The method as claimed in claim 15, wherein generating the metric comprises: inverting the principal angle as a function of one or more of the bits [b-1-log₂ M:b-2-log₂ M] of the received phase; and adding either A, −A or 0 to the principal angle or its inverse as a function of bits [b-1-log₂ M:b-2-log₂ M] of the received phase, wherein A is the absolute value of the maxima of the triangle wave.
 19. A method for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier, the method comprising: obtaining a baseband symbol from the modulated carrier that is modulated using the symbol according to a modulation order (M) equaling the number of distinct ideal symbol phases used to modulate the modulated carrier, wherein ideal symbol phases are uniformly distributed within any continuous phase interval spanning 2π radians; determining the phase of the symbol; and generating the metric from the phase, wherein possible metrics depend on possible phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians, wherein the ideal symbol phases correspond to identically valued metrics located on the triangle wave.
 20. The method as claimed in claim 19, wherein the base function has a value of zero at each of the ideal symbol phases.
 21. The method as claimed in claim 19, wherein the ideal symbol phases correspond to identical values for the metric located along either the positively sloped linear segments or the negatively sloped linear segments.
 22. The method as claimed in claim 19, wherein a maxima and minima of the triangle wave have identical absolute values.
 23. The method as claimed in claim 19, wherein the modulated carrier is modulated according to Quadrature Amplitude Modulation.
 24. The method as claimed in claim 19, wherein the modulated carrier is modulated according to M-ary phase shift keying.
 25. The method as claimed in claim 19, wherein the modulation is selected from the group consisting of Binary Phase Shift Keying, Quaternary Phase Shift Keying, 8-Phase Shift Keying, 16-Phase Shift Keying, Rectangular Quadrature Amplitude Modulation-4, Rectangular Quadrature Amplitude Modulation-16, Rectangular Quadrature Amplitude Modulation-64, Rectangular Quadrature Amplitude Modulation-256, Rectangular Offset-Quadrature Amplitude Modulation-16, Rectangular Offset-Quadrature Amplitude Modulation-64, Rectangular Offset-Quadrature Amplitude Modulation-256, Offset-Quaternary Phase Shift Keying, Offset-8 Phase Shift Keying, Offset-16 Phase Shift Keying, and Minimum Shift Keying.
 26. The method as claimed in claim 19, wherein the received phase is expressed as being between [−π,π) radians prior to generating the metric, and wherein the base function as implemented spans only [−π,π) radians.
 27. The method as claimed in claim 19, wherein the received phase is encoded using an encoding scheme that linearly encompasses substantially all of the possible received phases.
 28. The method as claimed in claim 19, wherein the metric is generated as a function of a principal angle that is directly proportional to the received phase modulo (π/2M).
 29. A phase detector for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier, the phase detector comprising: a front end configured to obtain a baseband symbol from the modulated carrier that is modulated using the symbol according to a modulation whose constellation diagram has M-fold rotational symmetry, wherein M is a positive integer greater than or equal to 2; a phase determiner communicatively coupled to the front end and configured to determine a received phase of the baseband symbol; and a metric generator communicatively coupled to the phase determiner and configured to generate the metric from the received phase, wherein possible metrics depend on possible received phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians.
 30. The phase detector as claimed in claim 29, wherein a maxima and minima of the triangle wave have identical absolute values.
 31. The phase detector as claimed in claim 29, wherein the modulated carrier is modulated according to Quadrature Amplitude Modulation.
 32. The phase detector as claimed in claim 31, wherein the number of modulation symbols equals 2^(k), wherein k is a positive integer.
 33. The phase detector as claimed in claim 29, wherein the modulation is Rectangular Quadrature Amplitude Modulation.
 34. The phase detector as claimed in claim 29, wherein the modulated carrier is modulated according to M-ary phase shift keying.
 35. The phase detector as claimed in claim 34, wherein M equals 2^(k), wherein k is a positive integer.
 36. The phase detector as claimed in claim 29, wherein the modulation is selected from the group consisting of Binary Phase Shift Keying, Quaternary Phase Shift Keying, 8-Phase Shift Keying, 16-Phase Shift Keying, Rectangular Quadrature Amplitude Modulation-4, Rectangular Quadrature Amplitude Modulation-16, Rectangular Quadrature Amplitude Modulation-64, Rectangular Quadrature Amplitude Modulation-256, Rectangular Offset-Quadrature Amplitude Modulation-16, Rectangular Offset-Quadrature Amplitude Modulation-64, Rectangular Offset-Quadrature Amplitude Modulation-256, Offset-Quaternary Phase Shift Keying, Offset-8 Phase Shift Keying, Offset-16 Phase Shift Keying, and Minimum Shift Keying.
 37. The phase detector as claimed in claim 29, wherein the phase determiner is configured to express the received phase as being between [−π,π) radians, and wherein the base function as implemented spans only [−π,π) radians.
 38. The phase detector as claimed in claim 29, wherein the phase determiner is configured to encode the received phase using an encoding scheme that linearly encompasses substantially all of the possible received phases.
 39. The phase detector as claimed in claim 29, wherein the metric generator is configured to determine for the received phase a principal angle that is directly proportional to the received phase modulo (π/2M) and to determine the metric as a function of the principal angle.
 40. The phase detector as claimed in claim 39, wherein the metric generator is configured to normalize the principal angle such that its supremum equals the absolute value of the maxima of the triangle wave.
 41. The phase detector as claimed in claim 39, wherein the phase determiner encodes the received phase such that the principal angle comprises one or more of the least significant bits of the phase.
 42. The phase detector as claimed in claim 39, wherein the phase determiner encodes the received phase such that one or more bits (inversion control bits) of the received phase indicate whether to invert the principal angle and such that two or more bits (selection bits) of the received phase indicate whether to add A, −A or 0 to the principal angle or its inverse, wherein A is the absolute value of the maxima of the triangle wave, and wherein the metric generator comprises: inverting hardware comprising: a data input to which the principal angle is input; an inversion control input to which the inversion control bits are input; and a data output that outputs the inverse of the principal angle when the inversion control bits indicate the principal angle is to be inverted and otherwise outputs the principal angle; data selection hardware comprising: data inputs to which A, −A or 0 is input; a data selection input to which the selection bits are input; and a data output that outputs either A, −A or 0 in accordance with which one of the data inputs of the data selection hardware is selected by the selection bits; and adding hardware comprising: data inputs communicatively coupled to the data outputs of the inverting hardware and the data selection hardware; and a data output that outputs the sum of signals at the data inputs of the adding hardware.
 43. The phase detector as claimed in claim 42 wherein: the inverting hardware comprises a first XOR gate configured to receive the inversion control bits and an array of XOR gates each having one input to receive one bit of the principal angle, wherein the output of the first XOR gate is communicatively coupled to another input of each of the XOR gates in the array; the data selection hardware comprises a multiplexer; and the adding hardware comprises an adder.
 44. The phase detector as claimed in claim 42, wherein A is
 1. 45. The phase detector as claimed in claim 39, wherein the phase determiner encodes the received phase such that a principal angle precursor comprises one or more of the least significant bits of the received phase, and wherein the principal angle is directly proportional to the principal angle precursor.
 46. The phase detector as claimed in claim 45, wherein the phase determiner encodes the received phase such that one or more bits (inversion control bits) of the received phase indicate whether to invert the principal angle precursor and such that two or more bits (selection bits) of the received phase indicate whether to add A, −A or 0 to the principal angle or its inverse, wherein A is the absolute value of the maxima of the triangle wave, and wherein the metric generator comprises: inverting hardware comprising: a data input to which the principal angle precursor is input; an inversion control input to which the inversion control bits are input; and a data output that outputs the inverse of the principal angle precursor when the inversion control bits indicate the principal angle precursor is to be inverted and otherwise outputs the principal angle precursor; data selection hardware comprising: a data input to which A, −A and 0 are input; a data selection input to which the selection bits are input; and a data output that outputs either A, −A or 0 in accordance with which one of the data inputs of the data selection hardware is selected by the selection bits; amplification hardware comprising: a data input communicatively coupled to the data output of the inverting hardware; and a data output that outputs the amplification of the signal at the data input; and adding hardware comprising: data inputs communicatively coupled to the data outputs of the amplification hardware and the data selection hardware; and a data output that outputs the sum of signals at the data inputs of the adding hardware.
 47. The phase detector as claimed in claim 39, wherein the phase determiner encodes the received phase in one's complement, two's complement, or sign-magnitude encoding, wherein the received phase has b bits and M equals 2^(k) wherein k is a positive integer, and wherein the principal angle comprises a plurality of the most significant bits of bits [b-3-log₂ M:0] of the received phase.
 48. The phase detector as claimed in claim 39, wherein the phase determiner encodes the received phase such that one or more of bits [b-1-log₂ M:b-2-log₂ M] (inversion control bits) of the received phase indicate whether to invert the principal angle and such that bits [b-log₂ M-1:b-log₂ M-2] (selection bits) of the received phase indicate whether to add A, −A or 0 to the principal angle or its inverse, wherein A is the absolute value of the maxima of the triangle wave, and wherein the metric generator comprises: inverting hardware comprising: a data input to which the principal angle is input; an inversion control input to which the inversion control bits are input; a data output that outputs the inverse of the principal angle when the inversion control bits indicate the principal angle is to be inverted and otherwise outputs the principal angle; data selection hardware comprising: data inputs to which A, −A or 0 are input; a data selection input to which the selection bits are input; and a data output that outputs either A, −A or 0 in accordance with which one of the data inputs of the data selection hardware is selected by the selection bits; and adding hardware comprising: data inputs communicatively coupled to the data outputs of the inverting hardware and the data selection hardware; and a data output that outputs the sum of the data outputs of the inverting hardware and the data selection hardware.
 49. The phase detector as claimed in claim 48, wherein: the inverting hardware comprises a first XOR gate configured to receive the inversion control bits and an array of XOR gates each having one input to receive one bit of the principal angle, wherein the output of the first XOR gate is communicatively coupled to another input of each of the XOR gates in the array; the data selection hardware comprises a multiplexer; and the adding hardware comprises an adder.
 50. The phase detector as claimed in claim 48, wherein A is
 1. 51. The phase detector as claimed in claim 39, wherein the phase determiner encodes the received phase in one's complement, two's complement, or sign-magnitude encoding, wherein the received phase has b bits and M equals 2^(k) wherein k is a positive integer, and wherein the principal angle is proportional to a principal angle precursor that comprises a plurality of the most significant bits of bits [b-3-log₂ M:0] of the received phase.
 52. The phase detector as claimed in claim 51, wherein the phase determiner encodes the received phase such that one or more of the bits [b-1-log₂ M:b-2-log₂ M] (inversion control bits) of the received phase indicates whether to invert the principal angle precursor and such that bits [b-log₂ M-1:b-log₂ M-2] (selection bits) of the received phase indicate whether to add A, −A or 0 to the principal angle or its inverse, wherein A is the absolute value of the maxima of the triangle wave, and wherein the metric generator comprises: inverting hardware comprising: a data input to which the principal angle precursor is input; an inversion control input to which the inversion control bits are input; and a data output that outputs the inverse of the principal angle precursor when the inversion control bits indicate the principal angle precursor is to be inverted and otherwise outputs the principal angle precursor; data selection hardware comprising: a data input to which A, −A and 0 are input; a data selection input to which the selection bits are input; and a data output that outputs either A, −A or 0 in accordance with which one of the data inputs of the data selection hardware is selected by the selection bits; amplification hardware comprising: a data input communicatively coupled to the data output of the inverting hardware; and a data output that outputs the amplification of the signal at the data input; and adding hardware comprising: data inputs communicatively coupled to the data outputs of the amplification hardware and the data selection hardware; and a data output that outputs the sum of signals at the data inputs of the adding hardware.
 53. The phase detector as claimed in claim 52, wherein: the inverting hardware comprises a first XOR gate configured to receive the inversion control bits and an array of XOR gates each having one input to receive one bit of the principal angle precursor, wherein the output of the first XOR gate is communicatively coupled to another input of each of the XOR gates in the array; the data selection hardware comprises a multiplexer; the amplification hardware comprises a bit shifter; and the adding hardware comprises an adder.
 54. A phase detector for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier, the phase detector comprising: a front end configured to obtain a baseband symbol from the modulated carrier that is modulated using the symbol according to a modulation order (M) equaling the number of distinct ideal symbol phases used to modulate the modulated carrier, wherein ideal symbol phases are uniformly distributed within any continuous phase interval spanning 2π radians; a phase determiner communicatively coupled to the front end and configured to determine the phase of the baseband symbols; and a metric generator communicatively coupled to the phase determiner and configured to determine the metric from the phase, wherein possible metrics depend on possible phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians, wherein the ideal symbol phases correspond to identically valued metrics located on the triangle wave.
 55. The phase detector as claimed in claim 54, wherein the base function has a value of zero at each of the ideal symbol phases.
 56. The phase detector as claimed in claim 54, wherein the ideal symbol phases correspond to identical values for the metric located along either the positively sloped linear segments or the negatively sloped linear segments.
 57. The phase detector as claimed in claim 54, wherein a maxima and minima of the triangle wave have identical absolute values.
 58. The phase detector as claimed in claim 54, wherein the modulated carrier is modulated according to Quadrature Amplitude Modulation.
 59. The phase detector as claimed in claim 54, wherein the modulated carrier is modulated according to M-ary phase shift keying.
 60. The phase detector as claimed in claim 54, wherein the modulation is selected from the group consisting of Binary Phase Shift Keying, Quaternary Phase Shift Keying, 8-Phase Shift Keying, 16-Phase Shift Keying, Rectangular Quadrature Amplitude Modulation-4, Rectangular Quadrature Amplitude Modulation-16, Rectangular Quadrature Amplitude Modulation-64, Rectangular Quadrature Amplitude Modulation-256, Rectangular Offset-Quadrature Amplitude Modulation-16, Rectangular Offset-Quadrature Amplitude Modulation-64, Rectangular Offset-Quadrature Amplitude Modulation-256, Offset-Quaternary Phase Shift Keying, Offset-8 Phase Shift Keying, Offset-16 Phase Shift Keying, and Minimum Shift Keying.
 61. The phase detector as claimed in claim 54, wherein the phase determiner is configured to express the received phase as being between [−π,π) radians, and wherein the base function as implemented spans only [−π,π) radians.
 62. The phase detector as claimed in claim 54, wherein the phase determiner is configured to encode the received phase using an encoding scheme that linearly encompasses substantially all of the possible received phases.
 63. The phase detector as claimed in claim 54, wherein the metric generator is configured to determine for the received phase a principal angle that is directly proportional to the received phase modulo (π/2M) and to determine the metric as a function of the principal angle.
 64. A phase detector for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier, the phase detector comprising: selecting means for selecting one of A, −A or 0 in response to selection bits; inverting means for inverting a principal angle in response to inversion control bits; and adding means, communicatively coupled to outputs of the selecting means and the inverting means, for adding one of A, −A or 0 to the principal angle or its inverse to generate the metric, wherein the modulated carrier is modulated using a symbol according to a modulation order (M) equaling the number of distinct ideal symbol phases used to modulate the modulated carrier, wherein ideal symbol phases are uniformly distributed within any continuous phase interval spanning 2π radians, and wherein the principal angle is modulo (π/2M) of the phase of the symbol normalized to have a supremum of A, wherein possible metrics depend on possible phases of the symbol according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians, and wherein A is the absolute value of the maximum of the base function.
 65. The phase detector as claimed in claim 64, wherein the modulation is selected from the group consisting of Binary Phase Shift Keying, Quaternary Phase Shift Keying, 8-Phase Shift Keying, 16-Phase Shift Keying, Rectangular Quadrature Amplitude Modulation-4, Rectangular Quadrature Amplitude Modulation-16, Rectangular Quadrature Amplitude Modulation-64, Rectangular Quadrature Amplitude Modulation-256, Rectangular Offset-Quadrature Amplitude Modulation-16, Rectangular Offset-Quadrature Amplitude Modulation-64, Rectangular Offset-Quadrature Amplitude Modulation-256, Offset-Quaternary Phase Shift Keying, Offset-8 Phase Shift Keying, Offset-16 Phase Shift Keying, and Minimum Shift Keying.
 66. An apparatus for evaluating a base function, the apparatus comprising: a front end configured to obtain a baseband symbol from a modulated carrier that is modulated using the symbol according to a modulation; a phase determiner communicatively coupled to the front end and configured to determine a received phase of the baseband symbol; and a metric generator communicatively coupled to the phase determiner and configured to generate the metric from the received phase, wherein possible metrics depend on possible received phases according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/N radians, wherein N is a positive integer greater than
 1. 67. A phase detector for generating a metric that is a function of a phase difference between a modulated carrier and a local carrier, the phase detector comprising: selecting means for selecting one of A, −A or 0 in response to selection bits; inverting means for inverting a principal angle in response to inversion control bits; and adding means, communicatively coupled to outputs of the selecting means and the inverting means, for adding one of A, −A or 0 to the principal angle or its inverse to generate the metric, wherein the modulated carrier is modulated using a symbol according to a modulation whose constellation diagram has M-fold rotational symmetry, wherein M is a positive integer greater than or equal to 2, and wherein the principal angle is modulo (π/2M) of the phase of the symbol, normalized to have a supremum of A, wherein possible metrics depend on possible phases of the symbol according to a base function that comprises a triangle wave having positively and negatively sloped linear segments whose slopes have identical absolute values and that is periodic with a period of 2π/M radians, and wherein A is the absolute value of the maximum of the base function. 